package com.syaccp.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;


/**
 * <p>
 *
 * </p>
 *
 * @author hsx
 * @since 2023-07-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TExchargePackage对象", description="")
public class TExchargePackage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "充值包名称")
    private String exchargeName;

    @ApiModelProperty(value = "充值金额")
    private Integer exchargeMoney;

    @ApiModelProperty(value = "赠送优惠劵金额")
    private Integer couponMoney;

    @ApiModelProperty(value = "赠送优惠劵数量")
    private Integer couponNum;

    @ApiModelProperty(value = "使用门槛")
    private String remark;

    @ApiModelProperty(value = "可领取开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date  receiveStartTime;

    @ApiModelProperty(value = "可领取结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String receiveEndTime;

    @ApiModelProperty(value = "0: 有效 1：无效")
    private Integer status;

    @ApiModelProperty(value = "删除标志（0代表存在 1代表删除）")
    private Integer delFlag;

    @ApiModelProperty(value = "创建者")
    private Integer createBy;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新者")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    private Date  updateTime;

}
